package com.coffee.order.api.sku.service;

import com.coffee.core.entity.Page;
import com.coffee.core.entity.PagerInfo;
import com.coffee.core.exception.BusinessException;
import com.coffee.order.api.sku.query.EnjoyBeforePaySkuQuery;
import com.coffee.order.api.sku.result.EnjoyBeforePaySkuResult;
import com.coffee.sku.api.sku.req.SkuListReq;
import com.coffee.sku.api.sku.result.SkuListResult;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface EnjoyBeforePaySkuService {

	Page<SkuListResult> getPager(SkuListReq param, PagerInfo pr);
	
	EnjoyBeforePaySkuResult getDetail(Integer id);

	void delete(Integer id);

	void deleteBySkuId(Integer id);

	void addOrUpdate(EnjoyBeforePaySkuResult result)throws BusinessException;

	void addBySkuIds(List<Integer> skuIds)throws BusinessException;

	Map<Integer,EnjoyBeforePaySkuResult> getItemMap(Set<Integer> idSet);
	
}